package com.cloud.bc.service;

import com.cloud.bc.model.domain.UserInfo;
import com.cloud.bc.model.entity.BcSingles;
import com.cloud.bc.model.entity.BcUsers;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigInteger;
import java.util.List;

/**
 * 用户
 *
 * @author douhaichao code generator
 * @date 2021-01-02 09:06:07
 */
public interface BcUsersService extends IService<BcUsers> {

    int count(BcUsers req);

    List<BcUsers> selectAll(BcUsers req);

    IPage<BcUsers> selectPage(Page page, BcUsers req);

    IPage<BcUsers> selectPageByLike(Page page, BcUsers req);

    BcUsers selectOne(BcUsers req);

    UserInfo getUserInfo(HttpServletRequest request);

    /**
     * 登录并写cookie
     */
    void login(HttpServletRequest request, HttpServletResponse response, BcUsers bcUsersResult);

    BcUsers loginByMobileEmail(BcUsers bcUsers);

}
